from django.urls import path, include
from .views import *

urlpatterns = [
    path('index/', index),
    path('qs/', qs),
    path('register/', regist),
    path('json/', get_body_json),
    path('headers/', get_headers),
    # 【二】 HttpResponse的路由
    path('resp/', resp_view),
    path('resp_sub/', resp_sub),
    path('resp_json/', resp_json),
    # 【三】cookie与session
    path('get/cookie/', get_cookie),  # 服务端设置cookie传递给客户端
    path('send/cookie/', send_cookie),  # 客户端发送cookie 到服务端
    path('set/session/', set_session),
    path('get/session/', get_session),

    # 类视图
    path('class/register/', Regist.as_view())
]
